package com.binance.mbxgateway.vo.response.klines;

import java.math.BigDecimal;
import java.util.List;

import com.binance.master.commons.ToString;
import com.google.common.collect.Lists;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@ApiModel
@Getter
@Setter
public class GetKlinesResponse extends ToString {

    /**
     * 
     */
    private static final long serialVersionUID = -3406041105648455318L;

    @ApiModelProperty
    private final List<KLineItem> items = Lists.newArrayList();

    @Getter
    @Setter
    public static class KLineItem extends ToString {

        /**
         * 
         */
        private static final long serialVersionUID = -2824710479676072903L;

        @ApiModelProperty
        private Long openTime;
        @ApiModelProperty
        private BigDecimal open;
        @ApiModelProperty
        private BigDecimal high;
        @ApiModelProperty
        private BigDecimal low;
        @ApiModelProperty
        private BigDecimal close;
        @ApiModelProperty
        private BigDecimal volume;
        @ApiModelProperty
        private Long closeTime;
        @ApiModelProperty
        private BigDecimal quoteAssetVolume;
        @ApiModelProperty
        private Long numberOfTrades;
        @ApiModelProperty
        private BigDecimal takerBuyBaseAssetVolume;
        @ApiModelProperty
        private BigDecimal takerBuyQuoteAssetVolume;
        @ApiModelProperty
        private BigDecimal ignore;
    }
}
